<meta charset="utf-8">
<div class="box box-primary" id="pmpBugs_check_tester">
		<div class="box-body">
		
			
     </div><!-- /.box-body -->
     
     <div class="box-footer">
	        <button type="button" class="btn btn-default" v-on:click="accept">验收通过</button>
	        <button type="button" class="btn btn-info pull-right" v-on:click="reject">测试驳回</button>
     </div>
   
</div>

<script type="text/javascript">

	var news = new Vue({
		el : '#pmpBugs_check_tester',
		data : {
			 ids: null,
			bus : new Vue()
		},
		mounted : function() {
			var _this = this;
			_this.ids= zfesLayerEditDg.getLayerParam().ids;
		},
		methods : {
			accept : function() {
				var _this = this;
				var url = "/pmp/service/test/pmpBugs/checkBugs";
					zfesAjax.ajaxTodo(url, {"ids":_this.$data.ids,"accept":1},function(data) {
								alertSwal.successText(data.message);
								layer.close(layer.index);
					})
			},
			reject : function() {
				var _this = this;
				var url = "/pmp/service/test/pmpBugs/checkBugs";
				zfesAjax.ajaxTodo(url, {"ids":_this.$data.ids,"accept":0},function(data) {
						alertSwal.successText(data.message);
						layer.close(layer.index);
				})
			}
			
			
		}
	});
</script>

